package com.library.service;

import java.util.Objects;

import com.library.bean.User;
import com.library.dao.UserDAO;

public class UserService {
	UserDAO userDAO = new UserDAO();
	
	public boolean login(String user_name,String password) {
		User user =  userDAO.selectByNamePwd(user_name,password);
		if(Objects.nonNull(user)) {
			return true;
		}
			
		return false;
	}

	
}
